package com.haoze.nurse.dao;

import com.haoze.nurse.model.NurseStatisticsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface EmrStatisticsMapper {
    /**
     * 若统计种类为空则删除8种常规统计记录，若种类为出入量总结则删除总结统计记录
     * @param inpatNum
     * @param statisticsType
     * @return
     */
    List<NurseStatisticsEntity> queryNeedUpdStatistics(@Param("inpatNum") String inpatNum, @Param("nodeTime") Date nodeTime,@Param("statisticsType") String statisticsType);

    Map<String,String> queryOrdersByTime(@Param("inpatNum") String inpatNum,@Param("endTime") Date endTime,@Param("type") String type);
}
